package online.heycm.platform.lock;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.context.annotation.Import;

/**
 * 注解启动分布式锁
 *
 * @author heycm
 * @since 2023/2/4 13:07
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
// 通过注解的方式加载自定义IOC容器
@Import({RedisSingleLockAutoConfiguration.class, RedisSentinelLockAutoConfiguration.class, DistributedLockAop.class})
public @interface EnableDistributedLock {
}
